package com.ding.state;

/*
 * @author ding
 * @date 2021/10/27 17:05:57
 */

public class OpenDoorState extends State {
    @Override
    public void stop() {
        System.out.println("已经停止");
    }

    @Override
    public void rise() {
        System.out.println("请先关门");
    }

    @Override
    public void down() {
        System.out.println("请先关门");
    }

    @Override
    public void openDoor() {
        System.out.println("门已经打开");
    }

    @Override
    public void closeDoor() {
        super.context.setState(new CloseDoorState());
        super.context.closeDoor();
    }
}
